#ifndef __SCANRESULTRECORDS_H__
#define __SCANRESULTRECORDS_H__

namespace NScanResultRecords
{
	struct FileRecord
	{
		quint32 id;
		QString name;

		FileRecord(quint32 id = 0, QString name = QString())
			: id(id),
			  name(name)
		{
			/* No Implementation */
		}
	};

	struct PluginRecord
	{
		quint32 id;
		QString name, desc;

		PluginRecord(quint32 id = 0, QString name = QString(), QString desc = QString())
			: id(id),
			  name(name),
			  desc(desc)
		{
			/* No Implementation */
		}
	};

	struct ResultRecord
	{
		quint32 id;
		quint32 pluginId, fileId;
		quint16 col, lineSpan, line;
		quint8 severity;
		QString code;

		ResultRecord(quint32 id, quint32 pluginId, quint32 fileId, quint16 col, quint16 lineSpan, quint16 line,
				quint8 severity, QString code)
			: id(id),
			  pluginId(pluginId),
			  fileId(fileId),
			  col(col),
			  lineSpan(lineSpan),
			  line(line),
			  severity(severity),
			  code(code)
		{
			/* No Implementation */
		}
	};
}

#endif // #ifndef __SCANRESULTRECORDS_H__
